#! /bin/bash
# docker clash \ 蓝牙耳机

color="^c#2D1B46^^b#5555660x66^"

update() {
    icons=("")
    [ "$(docker ps | grep 'clash-main')" ] && icons=(${icons[@]} "")
    [ "$(bluetoothctl info 14:0A:29:00:76:14 | grep 'Connected: yes')" ] && icons=(${icons[@]} "")
    [ "$AUTOSCREEN" = "OFF" ] && icons=(${icons[@]} "ﴸ")

    text=" ${icons[@]} "

    echo "$color" "$text"
}

update
